package cn.stylefeng.guns.modular.business.frequency.financecheckdetail.entity;

import cn.stylefeng.guns.core.pojo.base.entity.BaseEntity;
import com.baomidou.mybatisplus.annotation.*;

import lombok.Data;
import lombok.EqualsAndHashCode;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 对账单结算记录明细表表
 *
 * @author yujie
 * @date 2023/05/09 17:17
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("tt_finance_check_detail")
public class FinanceCheckDetail extends BaseEntity {

    /**
     * finance_check_id
     */
    @TableField("finance_check_id")
    private Long financeCheckId;

    /**
     * finance_detail_id
     */
    @TableField("finance_detail_id")
    private Long financeDetailId;

    /**
     * 应结款
     */
    @TableField("check_fee")
    private BigDecimal checkFee;

    /**
     * 类型
     */
    @TableField("type")
    private Integer type;

    /**
     * id
     */
    @TableId("id")
    private Long id;

    @TableField("status")
    private Integer status;

    @TableField("order_id")
    private Long orderId;

    @TableField("un_settlement")
    private BigDecimal unSettlement;

    @TableField("operator_user")
    private Long operatorUser;

    @TableField("remark")
    private String remark;

    @TableField("real_collection_time")
    private Date realCollectionTime;

    @TableField("channel")
    private Integer channel;

    @TableField("relation_id")
    private Long relationId;


    /**
     * 租户ID
     */
    @TableField(value = "tenant_id",fill = FieldFill.INSERT)
    private Long tenantId;
}
